package Models;

import java.util.Date;

public class YeastGen {
    private int yeastGenID;
    private YeastView yeastID;
    private Brinks brinkID;
    private int generation;
    private YeastGensView previousYeastGenID;
    private double cellCount;
    private double viability;
    private double density;
    private double vitality;
    private int originatingBrew;
    private int brewID;
    private String notes;
    private Date yeastGenDate;
    private boolean yeastPitched;
    private double amountLeft;
    
	public int getYeastGenID() {
		return yeastGenID;
	}
	public void setYeastGenID(int yeastGenID) {
		this.yeastGenID = yeastGenID;
	}
	public YeastView getYeastID() {
		return yeastID;
	}
	public void setYeastID(YeastView yeastID) {
		this.yeastID = yeastID;
	}
	public Brinks getBrinkID() {
		return brinkID;
	}
	public void setBrinkID(Brinks brinkID) {
		this.brinkID = brinkID;
	}
	public int getGeneration() {
		return generation;
	}
	public void setGeneration(int generation) {
		this.generation = generation;
	}
	public YeastGensView getPreviousYeastGenID() {
		return previousYeastGenID;
	}
	public void setPreviousYeastGenID(YeastGensView previousYeastGenID) {
		this.previousYeastGenID = previousYeastGenID;
	}
	public double getCellCount() {
		return cellCount;
	}
	public void setCellCount(double cellCount) {
		this.cellCount = cellCount;
	}
	public double getViability() {
		return viability;
	}
	public void setViability(double viability) {
		this.viability = viability;
	}
	public double getDensity() {
		return density;
	}
	public void setDensity(double density) {
		this.density = density;
	}
	public double getVitality() {
		return vitality;
	}
	public void setVitality(double vitality) {
		this.vitality = vitality;
	}
	public int getOriginatingBrew() {
		return originatingBrew;
	}
	public void setOriginatingBrew(int originatingBrew) {
		this.originatingBrew = originatingBrew;
	}
	public int getBrewID() {
		return brewID;
	}
	public void setBrewID(int brewID) {
		this.brewID = brewID;
	}
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	public java.util.Date getYeastGenDate() {
		return yeastGenDate;
	}
	public void setYeastGenDate(java.util.Date yeastGenDate) {
		this.yeastGenDate = yeastGenDate;
	}
	public boolean isYeastPitched() {
		return yeastPitched;
	}
	public void setYeastPitched(boolean yeastPitched) {
		this.yeastPitched = yeastPitched;
	}
	public double getAmountLeft() {
		return amountLeft;
	}
	public void setAmountLeft(double amountLeft) {
		this.amountLeft = amountLeft;
	}
    
	
    public String getDisplayString(){
        return Integer.toString(this.yeastGenID) + " - " + this.yeastID.getYeastName() +
                " - Gen: " + Integer.toString(this.generation) +
                " - Brink " + Integer.toString(brinkID.getBrinkID());
    }
    public String getYeastName(){
        return this.getYeastID().getYeastName();
    }
}
